#ifndef PROGROMLISTVIEW_H
#define PROGROMLISTVIEW_H

#include <QDialog>
#include <QModelIndex>
#include <QStandardItemModel>
#include <QStandardItem>

class ProgramView;

namespace Ui {
class ProgromListView;
}

class ProgromListView : public QDialog
{
    Q_OBJECT

public:
    explicit ProgromListView(int styleId,QWidget *parent = 0);
    ~ProgromListView();

    void initialDisplayStyle(int styleId);

    void setProgramFileList(QStringList fileList);
    void setSelectFile(QString fileNameIn);


public:
    ProgramView *programView;

signals:
    void getSelectFileName(QString filename);
private slots:
    void on_back_Btn_clicked();

    void onTableClicked(const QModelIndex &index);

    void on_button_select_clicked();

private:
    Ui::ProgromListView *ui;
    QStandardItemModel* model;
    QStringList nameList;
};

#endif // PROGROMLISTVIEW_H
